package com.community.backend.mapper;

import com.community.backend.pojo.Patrol;
import com.community.backend.pojo.dto.PatrolQueryDTO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PatrolMapper {
    Page<Patrol> pageQuery(PatrolQueryDTO patrolQueryDTO);

    void update(Patrol patrol);

    void insert(Patrol patrol);

    void deleteById(Integer id);
@Select("select * from patrol where id = #{id}")
    Patrol selectById(Integer id);
}
